//package cn.tqfeiyang.smartadmin.business.organization.controller;
//
//import cn.tqfeiyang.smartadmin.business.organization.service.PositionExcelService;
//import cn.tqfeiyang.smartadmin.business.organization.request.PositionQueryDTO;
//
//import jakarta.annotation.Resource;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.multipart.MultipartFile;
//import cn.dev33.satoken.annotation.SaCheckPermission;
//import io.swagger.v3.oas.annotations.Operation;
//import io.swagger.v3.oas.annotations.tags.Tag;
//import cn.tqfeiyang.smartadmin.commons.response.ApiResult;
//import cn.tqfeiyang.smartadmin.commons.logging.OperationLog;
//
///**
// * 职务Excel控制器
// *
// * @author tqfeiyang
// * @since 2024-09-30
// */
//@RestController
//@Validated
//@RequestMapping("/api/business/organization/position")
//@Tag(name = "组织/职务")
//public class PositionExcelController {
//
//    /**
//     * 职务Excel服务
//     */
//    @Resource
//    private PositionExcelService positionExcelService;
//
//    /**
//     * 导出Excel
//     */
//    @OperationLog
//    @GetMapping("/exportPositionsToExcel")
//    @Operation(summary = "职务 - 导出excel")
//    @SaCheckPermission("business:organization:position:exportPositionsToExcel")
//    public void exportPositionsToExcel(@Validated PositionQueryDTO dto) {
//        positionExcelService.exportPositionsToExcel(dto);
//    }
//
//    /**
//     * 下载模板
//     */
//    @OperationLog
//    @GetMapping("/downloadPositionTemplate")
//    @Operation(summary = "职务 - 下载模板")
//    @SaCheckPermission("business:organization:position:downloadPositionTemplate")
//    public void downloadPositionTemplate() {
//        positionExcelService.downloadPositionTemplate();
//    }
//
//    /**
//     * 导入Excel
//     */
//    @OperationLog
//    @PostMapping("/importPositionsFromExcel")
//    @Operation(summary = "职务 - 导入Excel")
//    @SaCheckPermission("business:organization:position:importPositionsFromExcel")
//    public ApiResult importPositionsFromExcel(MultipartFile file) {
//        positionExcelService.importPositionsFromExcel(file);
//        return ApiResult.success();
//    }
//}
